projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f998360
)
convert-emoji: Don’t pointlessly do rest of loop
author
Daniel Boles
<dboles@src.gnome.org>
Sun, 13 Aug 2017 16:39:13 +0000
(17:39 +0100)
committer
Daniel Boles
<dboles@src.gnome.org>
Sun, 13 Aug 2017 16:39:13 +0000
(17:39 +0100)
skip can never become FALSE again, so break as soon as it becomes TRUE.
gtk/emoji/convert-emoji.c
patch
|
blob
|
history
diff --git
a/gtk/emoji/convert-emoji.c
b/gtk/emoji/convert-emoji.c
index 989eefdf244c016b300eb588eb2169cc352e2f09..1e1f171260a0b7c27a6df71bf60967a233f3d929 100644
(file)
--- a/
gtk/emoji/convert-emoji.c
+++ b/
gtk/emoji/convert-emoji.c
@@
-133,7
+133,10
@@
main (int argc, char *argv[])
for (j = 0; blacklist[j]; j++)
{
if (strstr (name, blacklist[j]) != 0)
- skip = TRUE;
+ {
+ skip = TRUE;
+ break;
+ }
}
if (skip)
continue;